<template>
  <div>
    <tinymce-editor ref="editor"
                    v-model="msg"
                    :disabled="disabled"
                    @onClick="onClick">
    </tinymce-editor>
  </div>
</template>

<script>
import TinymceEditor from '_c/tinymce-editor'
export default {
  components: {
    TinymceEditor
  },
  data () {
    return {
      msg: '',
      disabled: false
    }
  },
  methods: {
    // 鼠标单击的事件
    onClick (e, editor) {
    },
    // 清空内容
    clear () {
      this.$refs.editor.clear()
    }
  }
}
</script>
